<template>
  <div class="dataPlatform">
    <!-- <h1 class="c-stxt">数据看板</h1> -->

    <headTop></headTop>
    <chart ></chart>
  </div>
</template>

<script>
import headTop from './components/headTop'
import chart from './components/chart.vue'
export default {
  components: { headTop, chart },
  data () {
    return {}
  },
  created () {
    this.$store.dispatch('dataPlatform/getDataPlnelData', {}).then(res => {
      if (res.code === 200) {
        // // console.log(res)
        // this.$router.push('/home')
        // this.$message.success(res.message)
      }
    }).catch(err => {
      this.$message({
        type: 'error',
        message: err,
        duration: 1000
      })
    })
  },
  computed: {

  }
}
</script>

<style lang="scss" scoped>
.dataPlatform {
  padding: 24px;
  .c-stxt {
  }
}
</style>
